package com.cloud.log.kafka.dubbo;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.cloud.log.api.dubbo.LogCenterService;
import com.cloud.log.api.entity.SysLog;
import com.cloud.log.kafka.service.LogService;

/**
 * 抽象一层给其他服务通过Dubbo调用，也可以避免可能存在与Spring Service相关的冲突
 * @author moon
 *
 */
@Service(version = "1.0.0")//要养成加Dubbo服务 Version的习惯
public class LogCenterServiceImpl implements LogCenterService{

	@Autowired
	private LogService logService;
	
	@Override
	public boolean saveDemoLog(SysLog sysLog) {

		logService.saveSysLog(sysLog);
		return true;
	}

}
